The visibility section of the Find window contains two options for controlling whether searches find items which are normally hidden in the Finder.
If these criteria are not available (that is, not visible in the window), searches will only return items normally visible in the Finder. That means invisible items and items inside packages are not found.